package com.huage.courseplatform.application.model.param;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="字典参数",description="字典参数")
public class DictPARAM implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(value = "用户id(新增可以不传)",required = true)
    private String id;

    @NotEmpty(message = "显示内容不能为空",groups = {Insert.class})
    @ApiModelProperty(value = "显示内容",required = true)
    private String label;

    @NotEmpty(message = "值不能为空",groups = {Insert.class})
    @ApiModelProperty(value = "值",required = true)
    private String value;

    @NotEmpty(message = "类型不能为空",groups = {Insert.class})
    @ApiModelProperty(value = "类型",required = true)
    private String type;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "字典父ID")
    private String parentId;

    @ApiModelProperty(value = "备注")
    private String remark;


}
